<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <script src="js/jquery-3.1.1.min.js"></script>
    <script type="text/javascript">
    	function logout() {
    		/* parent.logout2();
    		 $.confirm({
    			title: 'Confirm!',
    		    content: 'Simple confirm!',
    		    buttons: {
    		        confirm: function () {
						$.ajax({
							url:"user_logout",
							success:function(value){
								parent.location.href="login.jsp";
							}
						});
    		            
    		        }
    		    }
    		});  */
    		if(confirm("确定退出吗？")){
    			
	    		$.ajax({
					url:"user_logout",
					success:function(value){
						parent.location.href="login.jsp";
					}
				});
    		}
		}
    </script>
  </head>
  <body>
  	欢迎${user.username }! <a href="#" onclick="logout()">退出登录</a>
</button>
  	
  </body>
  
  
</html>
